package com.example.blog.mapper;

import com.example.blog.entity.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: lu
 * @Date: 2023-09-09-10:37
 * @Description: 博客分类数据接口
 */
@Repository
public interface CategoryMapper {

    int create(Category category);

    int update(Category category);

    List<Category> getCategoryPage();

    void delete(Integer id);

    List<Category> getById(Integer id);
}
